package com.teamsea.bean;

import com.teamsea.bean.beaninterface.BeanInterface;

public class Bean01 implements BeanInterface {

    private String name;

    public void init() {
        System.out.println("Bean01初始化");
    }

    public void destroy() {
        System.out.println("Bean01销毁");
    }

    public void doSomething() {
        System.out.println("Bean01正在执行");
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return "Bean01 [name=" + name + "]";
    }

}
